package com.csu.leiyun.ssm.demo.service;

import com.csu.leiyun.ssm.demo.domain.User;
import com.csu.leiyun.ssm.demo.persistence.UserDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserDAO userDAO;

    public User login(User user){
        return userDAO.findByUsernameAndPassword(user);
    }
}
